home *** CD-ROM | disk | FTP | other *** search
- ===============================================================================
- I tried to design a unique user interface for all my utilities.
- Its features are as follows:
- ===============================================================================
-
- o First of all: NEVER try to do something like "LOCASE TEXT.DAT > TEXT.DAT",
- ie., never try to redirect output to the input file. This results in
- loss of your data file. Instead, rename your input or output file before
- applying the command, like
- REN TEXT.DAT TMP.TMP
- LOCASE TMP.TMP > TEXT.DAT
- DEL TMP.TMP
- [That has nothing to do with my programs, but I think, it should be said]
-
- o I include as much DOCUMENTATION as possible in the EXE files, so you
- don't have to look into additional files like this one too often.
-
- o You may RENAME any of the programs to whatever name you wish. The help
- pages will recognize the change and update automatically. For bug reports
- please tell me the 'design name', which is shown in the -v screen, if it
- differs from your choice.
-
- o Valid switch characters are - and /
-
- o A filename - stands for input from stdin. This is true only for those
- utilities where input from standard input is meaningful. If you use
- them as pipes, as in
- DIR | NODUP -b10 -e12
- you may omit the filename argument.
-
- o Calling any of the programs without arguments will show a help page, if
- there is no meaningful application for such an invokation.
-
- o The option specification is case sensitive, ie. -h and -H are two
- different options!
-
- o Each program has at least 4 options: -h and -H display help screens.
- -v shows how to contact me and the version of the software. -* is
- (only?) useful for me when I'm debugging (but why make a secret of
- it...).
-
- o Options may be specified separately, like -a -b -c, or in one turn,
- like -abc. If options have arguments, like -b100, they may only appear
- at the end of tied-together options, ie. -ab100 is the same as -a -b100,
- whereas -b100a results in 100a as argument to -b.
- Options with arguments appear in the help pages with a trailing :.
-
- o The Errorlevel is set due to the following reasons: 0, if everything
- worked ok. 1, if an information screen had been displayed. 255, if a
- fatal error occured. Other settings depend on the tools functionality
- and are documented in the -H screens. This helps building batch files
- with the programs (IF ERRORLEVEL 255 GOTO... and so on).
-
- o The commandline may contain quoted strings. Quoting characters are
- ' and ", respectively. The following command line
- ASET A COUNT 'a"a' "b'b"
- will result in A=2, because " will be part of the string in the first
- ' pair and vice versa. The ! character may be used to unquote ', ", #,
- and ! itself. Separators are space and tab characters. Quoted strings
- without separators in between are concatenated. Thus
- ASET A COUNT !'a"a' "b'b"
- will return 1, namely the string >>>'aa' bb"<<<. Think about this.
- Quoting may also be used to specify empty strings '', or "". Missing
- quotes at the end of the line are filled up appropriately.
-
- o Each significant command line part may be followed by a comment part
- which will not be propagated to the program. The comment begins with
- a # and ends with the command line. Use !# to get the # character.
-
- o If not explicitly said, the order of names and options is arbitrary.
- Parameter of options, like -b100 must be appended without blanks
- (otherwise they are interpreted as names).
-
- o Currently my utilities cannot process files whose name begins with -
- (unless they are part of a wildcard like *.*). You must either use
- a wildcard or rename them first. Sorry.
-